package cn.wolfcode.luowowo.util;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
public class CommunityCondition {
    private int min;//最小值
    private int max;//最大值

    public CommunityCondition(int min, int max) {
        this.min = min;
        this.max = max;
    }

    //时间
    public static final Map<Integer, CommunityCondition> DAY_TYPE = new HashMap<>();
    //次数
    public static final Map<Integer, CommunityCondition> NUM_TYPE = new HashMap<>();

    static {
        DAY_TYPE.put(0, new CommunityCondition(0, 1));
        DAY_TYPE.put(1, new CommunityCondition(1, 7));
        DAY_TYPE.put(2, new CommunityCondition(1, 30));
    }
}
